package com.itheima.demo4;

/**
 * @author zzw
 * @date 2025/4/25
 * @description 接口隔离原则
 */
public class Client {
    public static void main(String[] args) {
        HeimaSafetyDoor door = new HeimaSafetyDoor();
        door.antiTheft();
        door.fireproof();
        door.waterproof();

        System.out.println("======");

        ItcastSafetyDoor door2 = new ItcastSafetyDoor();
        door2.antiTheft();
        door2.fireproof();
    }
}
